-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CHadamard #1114
CHadamard #1114
Conversation
|
||
@cached_property | ||
def signature(self) -> 'Signature': | ||
return Signature.build(ctrl=1, q=1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto: should we rename to ctrl
and target
instead?
# This is based on the decomposition provided by `cirq.decompose_multi_controlled_rotation` | ||
# which uses three cirq.MatrixGate's to do a controlled version of any single-qubit gate. | ||
# The first MatrixGate happens to be a clifford, Hadamard operation in this case. | ||
# The other two are considered 'rotations'. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please link #237 in the comments so we can update the T-complexity at a later point.
At long last I have made the requested changes |
Add the controlled-hadamard
CHadamard
bloq. This will be a leaf bloq #873 and specialized compilations should be relegated to the architecture-specific models #237Basic gates #1109